//package com.example.Config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
//import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
//
///**
// * @Auther: zro
// * @Date: 2019/1/7 01:49
// * @Description:
// */
//@Configuration
//@EnableRedisHttpSession(maxInactiveIntervalInSeconds= 1800)
//public class SessionConfig {
//
//    @Bean
//    public JedisConnectionFactory connectionFactory() {
//        JedisConnectionFactory connection = new JedisConnectionFactory();
//        connection.setHostName("localhost");
//        connection.setPort(6379);
//        return connection;
//    }
//}
